# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=mpv-mpris
pkgver=0.8.1
pkgrel=0
pkgdesc="MPRIS plugin for mpv"
url="https://github.com/hoyon/mpv-mpris"
arch="all"
license="MIT"
depends="mpv"
makedepends="glib-dev mpv-dev"
options="!check"  # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/hoyon/mpv-mpris/archive/$pkgver.tar.gz"

build() {
	make
}

package() {
	install -Dm 0644 mpris.so "$pkgdir"/etc/mpv/scripts/mpris.so
}

sha512sums="
a7ed2c7d5d0b7eb323026ae7b21c8a55e02a90b9fe761d7162ed7162200cf00793842f04a7a2ac841f7de3196657cfb17029ce7285ea977cd35284879db0184d  mpv-mpris-0.8.1.tar.gz
"
